/**
 * @version Create on 2012-11-2
 * @author Yinzi Chen
 */

public class JumpGame {

	public boolean canJump(int[] A) {
		int n = A.length;
		int max = 1;
		for (int i = 0; i < n; ++i) {
			if (max > i) {
				max = Math.max(max, i + A[i] + 1);
			} else
				return false;
		}
		return true;
	}

	public static void main(String[] args) {

	}

}
